package com.rnkrsoft.suyan.config.server.services.file.services;


import com.rnkrsoft.suyan.config.server.services.file.domains.*;

import javax.doc.annotation.ApidocInterface;
import javax.doc.annotation.ApidocService;

/**
 * Created by woate on 2018/5/13.
 * 文件服务
 */
@ApidocService("文件服务")
public interface FileService {
    @ApidocInterface("新增文件")
    CreateFileResponse create(CreateFileRequest request);
    @ApidocInterface("修改文件")
    ToUpdateFileResponse toUpdate(ToUpdateFileRequest request);
    @ApidocInterface("修改文件")
    UpdateFileResponse update(UpdateFileRequest request);
    @ApidocInterface("删除文件")
    DeleteFileResponse delete(DeleteFileRequest request);
    @ApidocInterface("查看文件")
    ViewFileResponse view(ViewFileRequest request);
    @ApidocInterface("查询文件")
    QueryFileResponse query(QueryFileRequest request);
    @ApidocInterface("按照机器列出文件")
    ListFileResponse listFileByMachine(ListFileByMachineRequest request);
    @ApidocInterface("授予权限")
    GrantFileResponse grant(GrantFileRequest request);
}
